package com.bilibili.myblogbackend.common;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Result {
    private static final Integer code=200;
    private  String msg;
    private Object data;
    public static Result suceess(Object obj){
        return new Result("成功",obj);
    }
    public static Result error(String str){
        return new Result(str,null);
    }
}
